<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                template="./templates/base_template.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:define name="complementTitreEtH1">Ajouter un compte</ui:define>

    <ui:define name="content">
        
        <f:view>
            <h:form>
                <p:growl id="growl" showDetail="true" /> 
                
                <h1><h:outputText value="Create/Edit"/></h1>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Proprietaire:" for="proprietaire" />
                    <h:inputText id="proprietaire" value="#{gestionnaireDeComptes.nomProprio}" title="Proprietaire" />
                    <h:outputLabel value="Solde:" for="solde" />
                    <h:inputText id="solde" value="#{gestionnaireDeComptes.solde}" title="Solde" />
                    <h:commandButton value="Créer" action="#{gestionnaireDeComptes.creerNouveauCompte()}"></h:commandButton>
                </h:panelGrid>
            </h:form>
        </f:view>

    </ui:define>

</ui:composition>

